<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">
		<meta name="google-translate-customization" content="ca5c0b8e6d03d815-4e2a1dbbd4527886-gf5e4f9b14296a09c-16"></meta>
		<title>Zap</title>
		
		<link rel="stylesheet" href="<?php echo base_url('assets/front/css/bootstrap.css');  ?>" media="screen">
		<link href="<?php echo base_url('assets/front/css/jquery-ui-1.10.0.custom.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/style.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/bootstrap-switch.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/icheck.css');  ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/bootstrap-select.css');?>"  rel="stylesheet" type="text/css" />
		<link href="<?php echo base_url('assets/front/css/fbphotobox.css');?>"  rel="stylesheet" type="text/css" />
		
		<?php echo $this->template->stylesheet; ?>
		<script src="<?php echo base_url('assets/front/js/jquery-1.10.2.js');  ?>"></script>
		<script src="<?php echo base_url('assets/front/js/jquery-ui-1.9.2.custom.min.js');  ?>"></script>
		
		<?php echo $this->template->javascript; ?>
		
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/bootstrap.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/placeholder.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/jquery.validate.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/form_validation.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/bootstrap-switch.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/icheck.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/bootbox.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/bootstrap-select.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/front/js/fbphotobox.js'); ?>"></script>
		
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		  <script src="<?php echo base_url('assets/front/js/html5shiv.js');?>"></script>
		  <script src="<?php echo base_url('assets/front/js/respond.min.js')?>"></script>
		<![endif]-->
		<?php echo $this->template->script; ?>
		<style>
			.goog-te-gadget-icon {display:none;}
			.goog-te-gadget-simple a {text-decoration: none !important;}
			.goog-te-banner-frame.skiptranslate {display: none !important;}
			body { top: 0px !important; }
		</style>
		<script>
			var base_url="http://localhost/zap/";
		</script>
	</head>
	<body>
		<?php 
			header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
			header('Pragma: no-cache'); // HTTP 1.0.
			header('Expires: 0'); // Proxies.
			$member = $this->session->userdata('user');
			$settings=$this->general_model->select_val("setting","*","id = 1");
			$firstname=$member['firstname'];
			$lastname=$member['lastname'];
			$id=$member['userid'];
			$groupid=$member['groupid'];
			$is_login=$member['logged_in'];
			//$is_login=0;
			$page=page();
			
			
		?>
		<div class="inner_page_container">
			<div class="container">
				<div class="header">
					<a href="<?php echo base_url();?>"><img src="<?php echo base_url('assets/uploads/images'); ?>/<?=$settings['site_logo']?>" class="logo_img"></a>
					<ul class="nav nav-pills pull-right navul">
					<li style="padding:3px 10px 0 0;"> 
						<div id="google_translate_element"></div>
						<script type="text/javascript">
						function googleTranslateElementInit() {
						  new google.translate.TranslateElement({
							pageLanguage: 'en',
							layout: google.translate.TranslateElement.InlineLayout.SIMPLE
							
							},'google_translate_element');
						}
						</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
					</li>
					<?php if(!$is_login){?>
					  <li><a href="<?php echo base_url('users/login');?>" class="link login_bg">Login</a></li>
					  <li><a href="<?php echo base_url('users/signup');?>" class="link login_bg">Signup</a></li>
					<?}else{?>
						<li><h4 class="username"><?=$zapmember['username']?></h4></li>
						<li><a href="<?php echo base_url();?>" class="link login_bg">Home</a></li>
						<li><a href="<?php echo base_url('users/logout');?>" class="link login_bg">Logout</a></li>
					<?}?>
					</ul>
				</div>
				<?php if($this->session->flashdata('message')){?>
				<div class="alert alert-success alert-dismissable flashmsg">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					<?php echo $this->session->flashdata('message'); ?>
				</div>
				<?}else{?>
				<div class="alert alert-success alert-dismissable flashmsg" id="ajax_msg" style="display:none">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					
				</div>
				<?}?>
			</div>
			<?php if($is_login){?>
			<div class="container">
				<div class="inner-content">
				
					<div class="col-sm-3 col-md-3 sidebar left-bar">
						<div class="thumbnail">
						<img src="<?php echo base_url(); ?>assets/uploads/.thumbs/images/zap/<?php echo $zapmember['photo'] == '' ? DEFAULT_IMG : $zapmember['photo'] ; ?>" alt="Profile-img" class="img-responsive" height="300" width="220">
						<h4 class="text-center"><?=$zapmember['firstname'].' '.$zapmember['lastname']?></h4>
						</div>
						<?php if(isset($frontmenu)){
							echo $this->template->widget("cms_appmenu_widget", array("menu_name"=>"front_menu"));
						}else if(isset($settingmenu)){
							echo $this->template->widget("cms_appmenu_widget", array("menu_name"=>"setting_menu"));
						}else if(isset($membermenu)){
							echo $this->template->widget("cms_appmenu_widget", array("menu_name"=>"member_menu"));
						}
						?>
						<?php echo $this->template->widget("onlineuser_widget",array("userid"=>$this->memberid)); ?>
						
						
					</div>
					<div class="col-sm-9 main mid-bar">
						<?php echo $this->template->content; ?>  
					</div>
				</div>
			</div>
			<?}else{?>
			<?php echo $this->template->content; ?> 
			<?}?>
			<div class="container-fluid stickyfooter">
				<div class="footer img-responsive">
					<ul class="nav nav-pills footerul">
						<?php echo $this->template->widget("cms_bmenu_widget", array("menu_name"=>"footer_menu","liaclass"=>"footerli")); ?>
					   
					   <li class="footerli"><a class="footernav">&copy; 2014 Zap-out.com</a></li>                          
					</ul>
				</div>  
			</div>
		</div>
		<div class="modal modal-static fade" id="processing-modal" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-body">
						<div class="text-center">
							<img src="http://www.travislayne.com/images/loading.gif" class="icon" />
							<h4>Processing... </h4>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
